package org.mch.func.m_px.yunsf;

import org.mch.biz.ui.BizEvent;
import org.mch.biz.ui.BizPanel;
import org.mch.swingm.core.MButton;
import org.mch.swingm.ext.METextField;

/**
 * 描述：按位 左移 右移 Panel类；<BR/>
 * 
 * @author MCH；<BR/>
 *
 */
public class ErJinZhiJiSuan_Panel extends BizPanel {
	private static final long serialVersionUID = -3485724092586361411L;
	private METextField text_erjinzhi;
	private METextField text_jieguo;
	private MButton btn_jisuan;

	public ErJinZhiJiSuan_Panel() {

		initGUI();
	}

	private void initGUI() {
		setLayout(null);
		add(getText_erjinzhi());
		add(getText_jieguo());
		add(getBtn_jisuan());
	}

	@Override
	protected BizEvent createEvent() {
		return new ErJinZhiJiSuan_Event(this);
	}

	public METextField getText_erjinzhi() {
		if (text_erjinzhi == null) {
			text_erjinzhi = new METextField("二进制值：");
			text_erjinzhi.setBounds(12, 12, 382, 25);
		}
		return text_erjinzhi;
	}

	public METextField getText_jieguo() {
		if (text_jieguo == null) {
			text_jieguo = new METextField("计算结果：");
			text_jieguo.setBounds(406, 12, 184, 25);
		}
		return text_jieguo;
	}

	public MButton getBtn_jisuan() {
		if (btn_jisuan == null) {
			btn_jisuan = new MButton("计算");
			btn_jisuan.setBounds(602, 11, 91, 26);
			btn_jisuan.addMouseListener(getEvent());
		}
		return btn_jisuan;
	}
}
